package com.jadows.tdog.util;

import java.net.InetSocketAddress;
import java.net.SocketAddress;

public class RemotingUtil {

    private RemotingUtil() {
    }

    public static String socketAddress2String(final SocketAddress address) {
        InetSocketAddress inetSocketAddress = (InetSocketAddress) address;
        return inetSocketAddress.getAddress().getHostAddress() + ":" + inetSocketAddress.getPort();
    }
}
